using slope intercept to find the point